package com.dmxh.api;

import com.dmxh.pojo.TbAdmin;
import com.dmxh.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("dongdongshop-admin-service")
public interface AdminAPI {

    @PostMapping("/admin/queryByName")
    public TbAdmin queryByName(@RequestBody String username);
}
